//
//  BaseViewController.h
//  ContinueEDUPhone
//  UIViewController基类
//  Created by SL on 13-11-25.
//  Copyright (c) 2013年 Sheng Long. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"
#import "NavigatonBarView.h"

@interface BaseViewController : UIViewController<NavigatonBarViewDelegate,UIGestureRecognizerDelegate,ASIHTTPRequestDelegate>
{
    //加载框
    MBProgressHUD *progressView;
    
    //导航栏
    NavigatonBarView *navigationBarView;
}
@property (retain, nonatomic) NSMutableArray * netArray;

#pragma mark - ASI请求
//交给父类来完成ASIHTTPRequest请求
-(void)superASIStartAsynchronous:(ASIHTTPRequest*)request;
//父类获取服务器返回信息，成功获取到数据执行方法
-(void)getASIRecordSucceed:(ASIHTTPRequest *)request data:(NSDictionary*)dic;
//父类获取服务器返回信息，未成功获取到数据执行方法
-(void)getASIRecordFailed:(ASIHTTPRequest *)request data:(NSString*)failed;

#pragma mark - 提示框
//阻塞当前视图self.view提示框    belowSubview下面
- (void)showProgressView:(NSString *)title belowSubview:(UIView*)belowSubview;
//阻塞指定视图currentView提示框
-(void)blockingCurrentView:(UIView*)currentView title:(NSString*)title;
//消失的提示框
- (void)hideProgressView;
//可点击重新加载view   type==0加载失败     type==1没有数据
-(void)clickAgainLoadingView:(NSInteger)type;

#pragma mark - 侧边栏
//是否启用显示侧边栏
-(void)setLeftDrawerViewControllerEnabled:(BOOL)Enabled;
//是否本页面启用侧边栏，退出本页面不显示侧边栏
@property (nonatomic) BOOL currentShowLeft;

#pragma mark - 本地数据处理
//获取本地数据是否成功，Failed是否获取网络数据失败的时候加载数据
-(BOOL)getLocalData:(BOOL)Failed;
//获取本地数据
-(NSString*)getLocalData;
//存储本地数据
-(BOOL)saveLocalData:(NSString*)data;

#pragma mark - 调用页面显示导航或者返回按钮
//显示返回按钮
@property (nonatomic) BOOL showBackBtn;
//显示navbar样式
-(void)showNavbarStyle;

@end
